#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20210908.sql ./mysql/db
cp ../sql/ry_config_20220114.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../wish-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy wish-gateway "
cp ../wish-gateway/target/wish-gateway.jar ./wish/gateway/jar

echo "begin copy wish-auth "
cp ../wish-auth/target/wish-auth.jar ./wish/auth/jar

echo "begin copy wish-visual "
cp ../wish-visual/wish-monitor/target/wish-visual-monitor.jar  ./wish/visual/monitor/jar

echo "begin copy wish-modules-system "
cp ../wish-modules/wish-system/target/wish-modules-system.jar ./wish/modules/system/jar

echo "begin copy wish-modules-file "
cp ../wish-modules/wish-file/target/wish-modules-file.jar ./wish/modules/file/jar

echo "begin copy wish-modules-job "
cp ../wish-modules/wish-job/target/wish-modules-job.jar ./wish/modules/job/jar

echo "begin copy wish-modules-gen "
cp ../wish-modules/wish-gen/target/wish-modules-gen.jar ./wish/modules/gen/jar

